	@include("user.head")

	<!-- 公共头部 -->

	<div id="content_person">
	<div class="row">
		<div class="col-xs-3">
		@include('user.uc.navigation')

		</div>

		<div class="col-xs-9">
			<div class="panel panel-default">
			  <div class="panel-heading">
			    <h3 class="panel-title">个人信息</h3>
			  </div>
			  <div class="panel-body" style="min-height:400px;">
			  	<div class="row">
			  		<div class="col-xs-12">
			  			<button class="btn btn-primary pull_right" id="doEdit"><i class="fa fa-pencil-square-o"></i> 编 辑</button>
			  		</div>
			  	</div>
			  	<form class="form-horizontal">
			  		<div class="form-group">
						<label for="inputNick" class="col-xs-4 control-label">用户类型:</label>
						<div class="col-xs-5 uc_value no_padding_left">
							@if (Session::has("user"))
								@foreach($roles as $role)
									@if($role["id"] == Session::get("user")["role_id"])
									<%$role["role_name"]%>
									@endif
								@endforeach
							@else
							普通用户
							@endif
						</div>
					</div>
					<div class="form-group">
						<label for="inputNick" class="col-xs-4 control-label">昵称:</label>
						<div class="col-xs-5 uc_value no_padding_left">
							<% $data['nickname'] %>
						</div>
					</div>
					<div class="form-group">
						<label for="inputNick" class="col-xs-4 control-label">性别:</label>
						<div class="col-xs-5 uc_value no_padding_left">
							@if ($data['sex'] == 1)
							男
							@elseif ($data['sex'] == 0)
							女
							@endif
						</div>
					</div>
					<div class="form-group">
						<label for="inputNick" class="col-xs-4 control-label">联系方式:</label>
						<div class="col-xs-5 uc_value no_padding_left">
							<% $data['contact_way'] %>
						</div>
					</div>
					<div class="form-group">
						<label for="inputNick" class="col-xs-4 control-label">电子邮箱:</label>
						<div class="col-xs-5 uc_value no_padding_left">
							<% $data['email'] %>
						</div>
					</div>
					<div class="form-group">
						<label for="inputNick" class="col-xs-4 control-label">详细地址:</label>
						<div class="col-xs-5 uc_value no_padding_left">
							<%$data["province"]%> <%$data["city"]%> <%$data["area"]%> <%$data["address"]%>
						</div>
					</div>
				</form>
			  </div>
			</div>
		</div>
	</div>
	</div>

	<!-- 公共底部 -->
	@include("user.footer")
	@include("user.common")

	<!-- 公共底部 -->

<script type="text/javascript">
$("#doEdit").click(function(){
	window.location.href="edit_profile";
})
</script>
</body>
</html>